home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / mail / mailx6 / _setup.1 / MAILSYS3.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1996-03-08  |  731 b   |  37 lines

  1. unit Mailsys3;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, StdCtrls, ExtCtrls, main, mxmailx;
  8.  
  9. {$I mailxdef.int}
  10.  
  11. type
  12.   TMailSystem = class(TForm)
  13.     RadioGroup1: TRadioGroup;
  14.     Button1: TButton;
  15.     procedure Button1Click(Sender: TObject);
  16.   private
  17.     { Private declarations }
  18.   public
  19.     { Public declarations }
  20.   end;
  21.  
  22.  
  23. implementation
  24.  
  25. {$R *.DFM}
  26.  
  27. procedure TMailSystem.Button1Click(Sender: TObject);
  28. begin
  29.      case RadioGroup1.ItemIndex of
  30.           0: MainForm.MXSession1.MailType:=mtEXCHANGE;
  31.           1: MainForm.MXSession1.MailType:=mtVIM;
  32.           2: MainForm.MXSession1.MailType:=mtPOP3SMTP;
  33.      end;
  34. end;
  35.  
  36. end.
  37.